package com.byyy.ccts.modules.ysjl.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.byyy.ccts.core.common.entity.AbstractEntity;
import com.byyy.ccts.core.utils.StringUtils;
import lombok.Data;

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.net.URLEncoder;
import java.sql.Timestamp;

/**
 * @projectName: TODO
 * @package: com.byyy.ccts.modules.ysjl.entity
 * @className: YsjlActivity
 * @description: TODO
 * @author: LYB
 * @Date: 2023/9/3 16:12
 * @updateUser: LYB
 * @updateDate: 2023/9/3 16:12
 * @updateRemark:
 * @version: v1.0
 */
@TableName("T_YSJL_ACTIVITY_ENROLL")
@Data
public class YsjlActivityEnroll extends AbstractEntity<String> {

    @TableId(value="ID", type = IdType.UUID)
    @TableField(value="ID")
    private String id;
    @TableField(value="ACTIVITY_ID")
    private String activityId;
    @TableField(value="USER_ID")
    private String userId;
    @TableField(value="ADD_TIME")
    @JSONField(format ="yyyy-MM-dd HH:mm:ss")
    private Timestamp addTime;
    @TableField(value="EDIT_TIME")
    @JSONField(format ="yyyy-MM-dd HH:mm:ss")
    private Timestamp editTime;
    @TableField(value="SHOW_NAME")
    private String showName;

    @TableField(exist = false)
    private String userName;
    @TableField(exist = false)
    private String userPic;
    @TableField(exist = false)
    private String vipLevel;
    @TableField(exist = false)
    private String vipStyle;
    @TableField(exist = false)
    private boolean currentUser;

}
